import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home/index.vue'
import UploadPage from '@/views/upload/index.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/upload',
    name: 'UploadPage',
    component: UploadPage
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
